﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GRTVPluginConsole.Entity
{
    public class FinishStatus : Event
    {
        
        private string timing = null;

        public byte finishStatus;
         public string name;

        public override string ToString() {
            if (timing == null)
            {
                 timing = new DateTime((long)overtakeET * 10000000).ToString("HH:mm:ss");
            }
            if (finishStatus == 1)
            {
                return timing + " - " + name + " < FINISH";
            }
            else if (finishStatus == 2)
            {
                return timing + " - " + name + " < DNF";
            }
            else if (finishStatus == 3)
            {
                return timing + " - " + name + " < DQ";
            }
            return timing + " - " + name + " finishStatus unexpected:" + finishStatus;
        }
    }
}
